<template>
  <div class="search">
    <div class="search-head">
      <van-search v-model="value" placeholder="请输入搜索关键词" />
      <span @click="back">取消</span>
    </div>
    <div class="search-main"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    back() {
      this.$router.push("/Profile");
    },
  },
};
</script>

<style>
.search {
  width: 100%;
  height: 100%;
  background: #e6e6e6;
  font-size: 16px;
}
.search-head {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}
.van-search{
  width: 90%;
  height: 50px;
  background: #e6e6e6;
  padding: 0;
}
.search-main {
  width: 100%;
  height: 100%;
  background: #fff;
}
</style>